package a.i;

import java.util.Iterator;
import java.util.NoSuchElementException;

public final class v
  implements Iterator
{
  private final Iterator a;
  private u b;
  private boolean c;
  private Object d;
  public static boolean e;
  
  public v(Iterator paramIterator, u paramu)
  {
    this.a = paramIterator;
    this.b = paramu;
  }
  
  public boolean hasNext()
  {
    if (!p.b) {
      if (!this.c) {
        c();
      }
    }
    return this.c;
  }
  
  public Object next()
  {
    boolean bool = p.b;
    if (!bool)
    {
      if (!this.c) {
        c();
      }
      if (bool) {}
    }
    else
    {
      if (!this.c) {
        break label40;
      }
      this.c = false;
    }
    return this.d;
    label40:
    throw new NoSuchElementException();
  }
  
  public void remove()
  {
    throw new UnsupportedOperationException();
  }
  
  public u a()
  {
    return this.b;
  }
  
  public void a(u paramu)
  {
    this.b = paramu;
  }
  
  private void c()
  {
    boolean bool2 = p.b;
    boolean bool1 = p.a;
    label75:
    label80:
    do
    {
      Object localObject;
      do
      {
        if ((!this.a.hasNext()) || ((!bool2) && (this.c))) {
          return;
        }
        localObject = this.a.next();
        if (bool2) {
          break label75;
        }
        if (this.b == null) {
          break;
        }
        if (bool2) {
          break label80;
        }
      } while (!this.b.a(localObject));
      this.d = localObject;
      this.c = true;
    } while (!bool1);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.i.v
 * JD-Core Version:    0.7.0.1
 */